﻿using ProtoBuf;

namespace Remoting.Reactive.ProtoBuf
{
    [ProtoContract]
    [ProtoInclude(1, typeof(OnNextNotification))]
    [ProtoInclude(2, typeof(OnErrorNotification))]
    [ProtoInclude(3, typeof(OnCompletedNotification))]
    public abstract class NotificationMessage : Message, INotificationMessage
    {
        public override MessageKind MessageKind{ get { return MessageKind.Notification; } }
        public abstract NotificationKind Kind { get; }
    }
}
